Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632074 Views

Latest files of /cody/vishal-dcode/Button Ripple Effect

app.js cody/vishal-dcode/Button Ripple Effect/app.js
4 Views
0 Comments
// Select all the elements with class "ripple"
const buttons = document.querySelectorAll(".ripple");

// Add an event listener to each button
buttons.forEach((button) => {
button.addEventListener("click", function (e) {
// Get the x and y coordinates of the click event
const x = e.clientX;
style.css cody/vishal-dcode/Button Ripple Effect/style.css
8 Views
0 Comments
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
index.html cody/vishal-dcode/Button Ripple Effect/index.html
13 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link